package org.lanqiao.tjut.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lanqiao.tjut.bean.AdminBean;
import org.lanqiao.tjut.dao.IOperstorDao;
import org.lanqiao.tjut.dao.IUserLoginDao;
import org.lanqiao.tjut.service.IUserLoginService;
import org.springframework.stereotype.Service;

/**
 * Model层：进行业务逻辑处理
 * 
 * @author Administrator
 *
 */
@Service("adminS")
public class UserLoginServiceImpl implements IUserLoginService {
	@Resource
	private IUserLoginDao adminDao;
	@Resource
	private IOperstorDao opDao;

	@Override
	public int addAdmin(AdminBean adminB) {
		int i = 0;
		i = adminDao.addAdmin(adminB);
		return i;

	}

	@Override
	public List<AdminBean> findAdminByNameAndPwd(AdminBean adminB) {
		// 调用DAO层查询管理员姓名和密码信息
		List<AdminBean> lstAdminS = null;
		lstAdminS = adminDao.findAdminByNameAndPwd(adminB);
		return lstAdminS;

	}

}
